package service

import (
	"log"
	"net/http"
	_ "net/http/pprof"
)

func Start() {
	InitLogger(Conf.Common.LogPath, Conf.Common.LogLevel, Conf.Common.IsDebug)

	go func() {
		log.Println(http.ListenAndServe(":16067", nil))
	}()

	loadApps()
	loadDaemons()
	loadTimers()

	startSupervisor()

	// logRevealStart()

	startSync()
}
